Optimal. Leaf size=57 \[ \frac{(A b-a B) \log (a+b x)}{b (b d-a e)}+\frac{(B d-A e) \log (d+e x)}{e (b d-a e)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0973859, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ \frac{(A b-a B) \log (a+b x)}{b (b d-a e)}+\frac{(B d-A e) \log (d+e x)}{e (b d-a e)} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/((a + b*x)*(d + e*x)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 14.9519, size = 42, normalized size = 0.74 \[ \frac{\left (A e - B d\right ) \log{\left (d + e x \right )}}{e \left (a e - b d\right )} - \frac{\left (A b - B a\right ) \log{\left (a + b x \right )}}{b \left (a e - b d\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/(b*x+a)/(e*x+d),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0439829, size = 50, normalized size = 0.88 \[ \frac{e (A b-a B) \log (a+b x)+b (B d-A e) \log (d+e x)}{b e (b d-a e)} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/((a + b*x)*(d + e*x)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.009, size = 84, normalized size = 1.5 \[{\frac{\ln \left ( ex+d \right ) A}{ae-bd}}-{\frac{\ln \left ( ex+d \right ) Bd}{e \left ( ae-bd \right ) }}-{\frac{\ln \left ( bx+a \right ) A}{ae-bd}}+{\frac{\ln \left ( bx+a \right ) Ba}{b \left ( ae-bd \right ) }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/(b*x+a)/(e*x+d),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.34706, size = 78, normalized size = 1.37 \[ -\frac{{\left (B a - A b\right )} \log \left (b x + a\right )}{b^{2} d - a b e} + \frac{{\left (B d - A e\right )} \log \left (e x + d\right )}{b d e - a e^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b*x + a)*(e*x + d)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.221928, size = 72, normalized size = 1.26 \[ -\frac{{\left (B a - A b\right )} e \log \left (b x + a\right ) -{\left (B b d - A b e\right )} \log \left (e x + d\right )}{b^{2} d e - a b e^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b*x + a)*(e*x + d)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 4.53306, size = 226, normalized size = 3.96 \[ - \frac{\left (- A e + B d\right ) \log{\left (x + \frac{- A a e - A b d + 2 B a d - \frac{a^{2} e \left (- A e + B d\right )}{a e - b d} + \frac{2 a b d \left (- A e + B d\right )}{a e - b d} - \frac{b^{2} d^{2} \left (- A e + B d\right )}{e \left (a e - b d\right )}}{- 2 A b e + B a e + B b d} \right )}}{e \left (a e - b d\right )} + \frac{\left (- A b + B a\right ) \log{\left (x + \frac{- A a e - A b d + 2 B a d + \frac{a^{2} e^{2} \left (- A b + B a\right )}{b \left (a e - b d\right )} - \frac{2 a d e \left (- A b + B a\right )}{a e - b d} + \frac{b d^{2} \left (- A b + B a\right )}{a e - b d}}{- 2 A b e + B a e + B b d} \right )}}{b \left (a e - b d\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/(b*x+a)/(e*x+d),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.245323, size = 165, normalized size = 2.89 \[ \frac{B e^{\left (-1\right )}{\rm ln}\left ({\left | b x^{2} e + b d x + a x e + a d \right |}\right )}{2 \, b} - \frac{{\left (B b d + B a e - 2 \, A b e\right )} e^{\left (-1\right )}{\rm ln}\left (\frac{{\left | 2 \, b x e + b d + a e -{\left | b d - a e \right |} \right |}}{{\left | 2 \, b x e + b d + a e +{\left | b d - a e \right |} \right |}}\right )}{2 \, b{\left | b d - a e \right |}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b*x + a)*(e*x + d)),x, algorithm="giac")
[Out]